from django.db import models

# Create your models here.
class News(models.Model):
  title = models.CharField(max_length=200)
  content = models.TextField()
  created = models.DateTimeField(auto_now_add=True)
  is_delete = models.BooleanField(default=False)
  img= models.CharField(max_length=200)
  class Meta:
    db_table = 'testnews'

  def __str__(self):
    return self.title
